package com.carbon.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carbon.domain.system.vo.param.ChangePasswordParam;
import com.carbon.system.entity.SysAccount;
import com.carbon.system.param.BindEmailParam;
import com.carbon.system.param.ChangePhoneParam;
import com.carbon.system.param.SysAccountQueryParam;
import com.carbon.system.vo.SysAccountQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 帐号  Mapper 接口
 * </p>
 *
 * @author Li Jun
 * @since 2021-06-11
 */
@Repository
public interface SysAccountMapper extends BaseMapper<SysAccount> {
    String transactionex( @Param("buyerDeliveryExchange") String buyerDeliveryExchange);
    String transactionNumberToChinese(String projectType);

    SysAccount getInfoById(Integer userId);

    Integer updatePassword(@Param("changePasswordParam")ChangePasswordParam changePasswordParam);

    Integer updateEmail(@Param("bindEmailParam")BindEmailParam bindEmailParam);

    Integer updatePhone(@Param("changePhoneParam")ChangePhoneParam changePhoneParam);

    IPage<SysAccountQueryVo> search(Page<SysAccountQueryVo> page, SysAccountQueryParam param);

    void saveRoleToAccount(Long id, String roleNames);

    void removeOtherByAccountId(String id);

    String transactionexB(String accountStatus);

    String transactionexC(String status);
}
